package com.dilidili.service.impl;

import java.util.List;
import java.util.Map;

import com.dilidili.mapper.HistoryMapper;
import com.dilidili.service.IHistoryService;
import com.domain.History;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-31
 */
@Service
public class HistoryServiceImpl implements IHistoryService
{
    @Resource
    private HistoryMapper historyMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param historyUserid 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public History selectHistoryByHistoryUserid(Long historyUserid)
    {
        return historyMapper.selectHistoryByHistoryUserid(historyUserid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param history 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<History> selectHistoryList(History history)
    {
        return historyMapper.selectHistoryList(history);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param history 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertHistory(History history)
    {

        return historyMapper.insertHistory(history);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param history 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateHistory(History history)
    {
        return historyMapper.updateHistory(history);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param historyUserids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteHistoryByHistoryUserids(Long[] historyUserids)
    {
        return historyMapper.deleteHistoryByHistoryUserids(historyUserids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param historyUserid 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteHistoryByHistoryUserid(Long historyUserid)
    {
        return historyMapper.deleteHistoryByHistoryUserid(historyUserid);
    }

    @Override
    public List<Map> findhistory(Integer userid) {
        return historyMapper.findhistory(userid);
    }

    @Override
    public List<Map> findAllHistory(String text1,Integer userid) {
        return historyMapper.findAllHistory(text1,userid);
    }

    @Override
    public Object delHistory(Integer history_videoid, Integer userid) {
        return historyMapper.delHistory(history_videoid,userid);
    }

    @Override
    public Object delAllHistory(Integer userid) {
        return historyMapper.delAllHistory(userid);
    }

    @Override
    public List<History> selectHistoryByHistory(History history) {
        return historyMapper.selectHistoryByHistory(history);
    }

    @Override
    public void delByVideoId(Long videoId) {
        historyMapper.delByVideoId(videoId);
    }
}
